'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/api/login', controller.mock.login);
  router.get('/api/getUser', controller.mock.getUser);
  router.get('/api/getMenu', controller.menu.index);
  router.get('/api/getProvince', controller.select.province);
  router.get('/api/getCity', controller.select.city);
  router.get('/api/getState', controller.select.state);
  router.get('/api/get', controller.mock.mockGet);
  router.post('/api/post', controller.mock.mockPost);
};
